// Copyright 2016-2101 Pica.
package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

/**
 * @Description TODO
 * @Author yuefan
 * @Date 2020-11-23 10:17
 */
public interface UserManagerService {

    PageResult findAll(Integer currentPage, Integer pageSize, String queryString);

    void add(User user, Integer[] roleIds);

    List<Role> findRoles();

    User findById(Integer userId);

    List<Integer> findRoleIdsByUserId(Integer userId);

    void edit(User user, Integer[] roleIds);

    void delete(Integer userId);

    PageResult findByQueryString(Integer currentPage, Integer pageSize, String queryString);
}
